package com.technology.collection;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public class ListUsing {

	public static void main(String[] args) {
		List<Integer> list = new ArrayList<Integer>();
		for (int i = 0 ; i < 100; i++){
			list.add(i);
		}
		
		int counter = 0;
		for (Integer in: list){
			counter += in;
		}
		System.out.println(counter);
	}

}
